package com.wyy.springbootgraphql.resolver;

import com.wyy.springbootgraphql.beans.Book;
import graphql.kickstart.tools.GraphQLMutationResolver;
import org.springframework.stereotype.Service;

//@Service
public class BookMutationResolver implements GraphQLMutationResolver {

    public Book addBook(String id, String name){
        Book book = new Book();
        book.setId(id);
        book.setName(name);
        return book;
    }
}
